package gui;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

/**
 * Repräsentiert Ein Wochentagspanel
 * 
 * @author Michi
 * 
 */
public class WeekDayPanel extends JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 575140450180244359L;
	private JLabel dayNameLabel;
	private Date date;
	@SuppressWarnings("rawtypes")
	private List allCalendarItems;
	private JButton newEventButton;

	public JButton getNewEventButton() {
		return newEventButton;
	}

	public void setNewEventButton(JButton newEventButton) {
		this.newEventButton = newEventButton;
	}

	/**
	 * Create the panel.
	 */
	@SuppressWarnings("rawtypes")
	public WeekDayPanel() {
		allCalendarItems = new ArrayList();
		setBackground(Color.WHITE);
		setSize(new Dimension(100, 700));
		setPreferredSize(new Dimension(100, 700));
		setMinimumSize(new Dimension(100, 700));
		setMaximumSize(new Dimension(100, 700));
		setBorder(BorderFactory.createLineBorder(Color.GRAY, 3));

		dayNameLabel = new JLabel("");
		dayNameLabel.setFont(new Font("Lucida Grande", Font.ITALIC, 13));
		dayNameLabel.setMaximumSize(new Dimension(100, 50));
		dayNameLabel.setMinimumSize(new Dimension(40, 50));
		dayNameLabel.setPreferredSize(new Dimension(100, 50));
		dayNameLabel.setHorizontalTextPosition(SwingConstants.LEADING);
		add(dayNameLabel);

		newEventButton = new JButton("+");
		newEventButton.setMaximumSize(new Dimension(20, 15));
		newEventButton.setMinimumSize(new Dimension(20, 15));
		newEventButton.setPreferredSize(new Dimension(20, 15));
		add(newEventButton);

	}

	public JLabel getDayNameLabel() {
		return dayNameLabel;
	}

	public void setDayNameLabel(JLabel dayNameLabel) {
		this.dayNameLabel = dayNameLabel;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	@SuppressWarnings("rawtypes")
	public List getAllCalendarItems() {
		return allCalendarItems;
	}

	@SuppressWarnings("rawtypes")
	public void setAllCalendarItems(List allCalendarItems) {
		this.allCalendarItems = allCalendarItems;
	}

}
